/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2020年1月15日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package test.practice;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Type A
 * @Desc
 * @author 52489
 * @date 2020年1月15日
 * @Version V1.0
 */
public class A {
    public static void main(String[] args) {
        long a = 123l;
        if (a > 111l) {
            a = 111l;
        } else {
            a = 11123l;
        }

    }

    /**
     * @param string
     * @return
     */
    private static String getMoney(String string) {
        String regEx = "[^0-9]";
        Pattern p = Pattern.compile(regEx);
        Matcher m = p.matcher(string);
        return m.replaceAll("").trim();
    }

    /**
     * @return
     */
    private static String get(String date) {
        String dates[] = date.split("\\.");
        String year = dates[0];
        String month = dates[1];
        String day = dates[2];

        if (Integer.valueOf(month) < 10) {
            month = "0" + month;
        }
        if (Integer.valueOf(day) < 10) {
            day = "0" + day;
        }
        return year + "." + month + "." + day;
    }

}
